from toee import *
from utilities import *
from scripts import *

def san_dialog( attachee, triggerer ):
	if (game.global_flags[981] == 1) and (game.global_flags[980] == 1):
		triggerer.begin_dialog( attachee, 120 )
	elif (game.global_flags[981] == 1) and (game.global_flags[980] == 0):
		triggerer.begin_dialog( attachee, 70 )
	elif (game.global_flags[981] == 0) and (attachee.has_met( triggerer )) and (is_daytime() == 1):
		triggerer.begin_dialog( attachee, 50 )
	elif (game.global_flags[981] == 0) and (attachee.has_met( triggerer )) and (is_daytime() == 0):
		triggerer.begin_dialog( attachee, 60 )
	else:
		triggerer.begin_dialog( attachee, 1 )
	return SKIP_DEFAULT

